﻿<div class="inL180">
        <div class="inSearchTit">旅游线路查询</div>
        <ul class="inSearchText">
          <li><span>线路类型</span><input type="text" class="inputTitle" value="" id="sltid1" name="sltid1" id1="0" /><input type="hidden" id="catid" value="0" /></li>
          <li><span>想去</span><input type="text" class="inputTitle" value="目的地" id="sldid1" id1="0" /><input type="hidden" id="desid" value="0" /></li>
		  <li class="input"><input type="button" value="去找找看" class="inputOk" url="<?php echo site_url();?>/content_search/search/" onClick="Search(this,'catid/desid');" /></li>
        </ul>
		<ul id="linecategory" class="lineType" style="position:absolute; background:#FFFFFF">
<?php 
		$j=1;
		foreach($lineclass['parentid'][0] as $key=>$value){	//筛选数组parentid为0的线路类
?>	
		<li t_id="<?php echo $key?>"><?php echo $lineclass['parentid'][0][$key]?></li>		
			
<?php 		
			$j++;
		}//外部循环
?>				
		</ul>
		<div id="DestinationContainer" class="destinPop" style="z-index:1000;position:absolute; display:none;"></div>
<?php 
		$j=1;
		foreach($des_tags['parentid'][0] as $key=>$value){	//筛选数组parentid为0,一级tgs类的结果
?>			
        <div class="inSearchEnd"></div>
        <div class="inDestinationTit" style="margin-top:10px;"><a href="<?php echo site_url();?>/content_search/search?catid=<?php echo $key?>" target="_blank"><?php echo $des_tags['parentid'][0][$key]?></a></div>
        <div class="inDestinationText">	
		<?php 
			if(!empty($des_tags['parentid'][$key])){
				foreach($des_tags['parentid'][$key] as $item=>$value){	//筛选数组parentid为二级tags类的结果
		?>			
					<ul class="destNav">
						<p><a href="<?php echo site_url();?>/content_search/search/0/<?php echo $item?>" target="_blank"><?php echo $des_tags['parentid'][$key][$item];?></a></p>
						<?php 
							if(!empty($des_tags['parentid'][$item])){
								foreach($des_tags['parentid'][$item] as $index=>$value){	//筛选数组parentid为三级tags类的结果
						?>
									<li><a href="<?php echo site_url();?>/content_search/search/0/<?php echo $index?>" target="_blank"><?php echo $des_tags['parentid'][$item][$index];?></a></li>
	
							<?php }?>
						<?php }?>
					</ul>
			<?php }?>
		<?php }?>
        </div>
<?php 		
			$j++;
			if($j>4){break;}
		}//外部循环
?>	        
        <div class="inDestinationEnd"></div>

    </div>